<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="custom-style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
	<div style="overflow: hidden;">
		<div style="height: 57px;min-width: 1039px;background-size: auto 100%;background:url('');">
			<img src="titleleft.png" style="float: left;"/>
			<img src="titleright.png" alt="" style="float: right;" />
		</div>
	</div>
<!-- 制作者 Doxygen 1.8.15 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>法律声明</span></a></li>
      <li><a href="_xE9_xA6_x96_xE9_xA1_xB5.html"><span>首页</span></a></li>
      <li><a href="_xE6_x9B_xB4_xE6_x96_xB0_xE8_xAE_xB0_xE5_xBD_x95.html"><span>更新记录</span></a></li>
      <li><a href="_xE7_x8E_xAF_xE5_xA2_x83_xE9_x85_x8D_xE7_xBD_xAE.html"><span>环境配置</span></a></li>
      <li><a href="_xE7_xBC_x96_xE7_xA8_x8B_xE5_xBC_x95_xE5_xAF_xBC.html"><span>编程引导</span></a></li>
      <li class="current"><a href="modules.html"><span>接口说明</span></a></li>
      <li><a href="annotated.html"><span>结构体定义</span></a></li>
      <li><a href="_xE7_x9B_xB8_xE6_x9C_xBA_xE5_x8F_x82_xE6_x95_xB0_xE8_x8A_x82_xE7_x82_xB9_xE8_xA1_xA8.html"><span>相机参数节点表</span></a></li>
      <li><a href="examples.html"><span>示例程序</span></a></li>
      <li><a href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html"><span>状态码</span></a></li>
      <li><a href="_xE5_xB8_xB8_xE8_xA7_x81_xE9_x97_xAE_xE9_xA2_x98.html"><span>常见问题</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">相机初始化</div>  </div>
</div><!--header-->
<div class="contents">

<p>包含枚举相机、创建句柄、打开相机等接口  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga041a15775822d43cd17228e5adc2fd99"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga041a15775822d43cd17228e5adc2fd99">MV_CC_EnumerateTls</a> ()</td></tr>
<tr class="memdesc:ga041a15775822d43cd17228e5adc2fd99"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取支持的传输层  <a href="#ga041a15775822d43cd17228e5adc2fd99">更多...</a><br /></td></tr>
<tr class="separator:ga041a15775822d43cd17228e5adc2fd99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga88741869e2b3c12e47025e53e6a7b58b"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga88741869e2b3c12e47025e53e6a7b58b">MV_CC_EnumDevices</a> (IN unsigned int nTLayerType, IN OUT <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o___l_i_s_t.html">MV_CC_DEVICE_INFO_LIST</a> *pstDevList)</td></tr>
<tr class="memdesc:ga88741869e2b3c12e47025e53e6a7b58b"><td class="mdescLeft">&#160;</td><td class="mdescRight">枚举设备，支持枚举对应采集卡上的相机  <a href="#ga88741869e2b3c12e47025e53e6a7b58b">更多...</a><br /></td></tr>
<tr class="separator:ga88741869e2b3c12e47025e53e6a7b58b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga823b2ea8cf02a20ea37ade76f5aadc44"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga823b2ea8cf02a20ea37ade76f5aadc44">MV_CC_EnumDevicesEx</a> (IN unsigned int nTLayerType, IN OUT <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o___l_i_s_t.html">MV_CC_DEVICE_INFO_LIST</a> *pstDevList, IN const char *strManufacturerName)</td></tr>
<tr class="memdesc:ga823b2ea8cf02a20ea37ade76f5aadc44"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据厂商名字枚举设备，支持枚举对应采集卡上的相机  <a href="#ga823b2ea8cf02a20ea37ade76f5aadc44">更多...</a><br /></td></tr>
<tr class="separator:ga823b2ea8cf02a20ea37ade76f5aadc44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab5283e7d0f38e747e86e7bfa8b6411b9"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#gab5283e7d0f38e747e86e7bfa8b6411b9">MV_CC_EnumDevicesEx2</a> (IN unsigned int nTLayerType, IN OUT <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o___l_i_s_t.html">MV_CC_DEVICE_INFO_LIST</a> *pstDevList, IN const char *strManufacturerName, IN <a class="el" href="group___xE7_xB1_xBB_xE5_x9E_x8B_xE5_xAE_x9A_xE4_xB9_x89.html#ga0c3433390e7c75fccb1605f3cf010ff1">MV_SORT_METHOD</a> enSortMethod)</td></tr>
<tr class="memdesc:gab5283e7d0f38e747e86e7bfa8b6411b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">枚举设备扩展（可指定排序方式枚举、根据厂商名字过滤），支持枚举对应采集卡上的相机  <a href="#gab5283e7d0f38e747e86e7bfa8b6411b9">更多...</a><br /></td></tr>
<tr class="separator:gab5283e7d0f38e747e86e7bfa8b6411b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3c3ffcbd330529ee076433ef36d226f5"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API bool __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga3c3ffcbd330529ee076433ef36d226f5">MV_CC_IsDeviceAccessible</a> (IN <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o.html">MV_CC_DEVICE_INFO</a> *pstDevInfo, IN unsigned int nAccessMode)</td></tr>
<tr class="memdesc:ga3c3ffcbd330529ee076433ef36d226f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">设备是否可达  <a href="#ga3c3ffcbd330529ee076433ef36d226f5">更多...</a><br /></td></tr>
<tr class="separator:ga3c3ffcbd330529ee076433ef36d226f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf10f0644caa6d4dd39fd8c14f8736153"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#gaf10f0644caa6d4dd39fd8c14f8736153">MV_CC_CreateHandle</a> (IN OUT void **handle, IN const <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o.html">MV_CC_DEVICE_INFO</a> *pstDevInfo)</td></tr>
<tr class="memdesc:gaf10f0644caa6d4dd39fd8c14f8736153"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建设备句柄  <a href="#gaf10f0644caa6d4dd39fd8c14f8736153">更多...</a><br /></td></tr>
<tr class="separator:gaf10f0644caa6d4dd39fd8c14f8736153"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga09fd2a7fa7b1bbeec829eca959061169"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga09fd2a7fa7b1bbeec829eca959061169">MV_CC_CreateHandleWithoutLog</a> (IN OUT void **handle, IN const <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o.html">MV_CC_DEVICE_INFO</a> *pstDevInfo)</td></tr>
<tr class="memdesc:ga09fd2a7fa7b1bbeec829eca959061169"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建设备句柄，不生成日志  <a href="#ga09fd2a7fa7b1bbeec829eca959061169">更多...</a><br /></td></tr>
<tr class="separator:ga09fd2a7fa7b1bbeec829eca959061169"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga25ec535d08180f1c987c20c75b2224a2"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API bool __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga25ec535d08180f1c987c20c75b2224a2">MV_CC_IsDeviceConnected</a> (IN void *handle)</td></tr>
<tr class="memdesc:ga25ec535d08180f1c987c20c75b2224a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断设备是否处于连接状态  <a href="#ga25ec535d08180f1c987c20c75b2224a2">更多...</a><br /></td></tr>
<tr class="separator:ga25ec535d08180f1c987c20c75b2224a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga308c9a9869be7a457d27aadd94ce57dd"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga308c9a9869be7a457d27aadd94ce57dd">MV_CC_OpenDevice</a> (IN void *handle, IN unsigned int nAccessMode, IN unsigned short nSwitchoverKey)</td></tr>
<tr class="memdesc:ga308c9a9869be7a457d27aadd94ce57dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">打开设备  <a href="#ga308c9a9869be7a457d27aadd94ce57dd">更多...</a><br /></td></tr>
<tr class="separator:ga308c9a9869be7a457d27aadd94ce57dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa0b5fc03d13b3d0dc37d06a6e96ed646"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#gaa0b5fc03d13b3d0dc37d06a6e96ed646">MV_CC_GetAllMatchInfo</a> (IN void *handle, IN OUT <a class="el" href="struct_m_v___a_l_l___m_a_t_c_h___i_n_f_o.html">MV_ALL_MATCH_INFO</a> *pstInfo)</td></tr>
<tr class="memdesc:gaa0b5fc03d13b3d0dc37d06a6e96ed646"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取各种类型的信息  <a href="#gaa0b5fc03d13b3d0dc37d06a6e96ed646">更多...</a><br /></td></tr>
<tr class="separator:gaa0b5fc03d13b3d0dc37d06a6e96ed646"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa20b5286abff02858bb4802f907c111d"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#gaa20b5286abff02858bb4802f907c111d">MV_CC_GetDeviceInfo</a> (IN void *handle, IN OUT <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o.html">MV_CC_DEVICE_INFO</a> *pstDevInfo)</td></tr>
<tr class="memdesc:gaa20b5286abff02858bb4802f907c111d"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取设备信息，取流之前调用  <a href="#gaa20b5286abff02858bb4802f907c111d">更多...</a><br /></td></tr>
<tr class="separator:gaa20b5286abff02858bb4802f907c111d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga33853bd328f46492102246ca8b645d57"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga33853bd328f46492102246ca8b645d57">MV_CC_CloseDevice</a> (IN void *handle)</td></tr>
<tr class="memdesc:ga33853bd328f46492102246ca8b645d57"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭设备  <a href="#ga33853bd328f46492102246ca8b645d57">更多...</a><br /></td></tr>
<tr class="separator:ga33853bd328f46492102246ca8b645d57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0f74372a22e8a19fa7e21dad45070428"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga0f74372a22e8a19fa7e21dad45070428">MV_CC_DestroyHandle</a> (IN void *handle)</td></tr>
<tr class="memdesc:ga0f74372a22e8a19fa7e21dad45070428"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁设备句柄  <a href="#ga0f74372a22e8a19fa7e21dad45070428">更多...</a><br /></td></tr>
<tr class="separator:ga0f74372a22e8a19fa7e21dad45070428"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>包含枚举相机、创建句柄、打开相机等接口 </p>
<h2 class="groupheader">函数说明</h2>
<a id="ga041a15775822d43cd17228e5adc2fd99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga041a15775822d43cd17228e5adc2fd99">&#9670;&nbsp;</a></span>MV_CC_EnumerateTls()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_EnumerateTls </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取支持的传输层 </p>
<dl class="section return"><dt>返回</dt><dd>当前支持的传输层协议类型和数值总和 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>包含GigE、U3V、Camera Link、CoaXPress、XoFLink传输层。 </dd></dl>

</div>
</div>
<a id="ga88741869e2b3c12e47025e53e6a7b58b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga88741869e2b3c12e47025e53e6a7b58b">&#9670;&nbsp;</a></span>MV_CC_EnumDevices()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_EnumDevices </td>
          <td>(</td>
          <td class="paramtype">IN unsigned int&#160;</td>
          <td class="paramname"><em>nTLayerType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN OUT <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o___l_i_s_t.html">MV_CC_DEVICE_INFO_LIST</a> *&#160;</td>
          <td class="paramname"><em>pstDevList</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>枚举设备，支持枚举对应采集卡上的相机 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nTLayerType</td><td>[IN] 枚举传输层，参数定义参见CameraParams.h <table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">传输层协议类型定义  </th><th class="markdownTableHeadCenter">值  </th><th class="markdownTableHeadCenter">说明   </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gae1780ad0d41bcd2e835ab81155b398e6">MV_GIGE_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000001  </td><td class="markdownTableBodyCenter">GigE设备   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga356c3a2b4efad3bea955ecb54e1632fe">MV_USB_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000004  </td><td class="markdownTableBodyCenter">USB设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga45ee1f85623d2a6d3473f62f5cf90a77">MV_CAMERALINK_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000008  </td><td class="markdownTableBodyCenter">CameraLink设备（串口）   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga2eb6e8f764d2a5196c5cbfb002c3cf50">MV_VIR_GIGE_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000010  </td><td class="markdownTableBodyCenter">虚拟GigE设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gae28c7fd764b08214f45c7717920844b6">MV_VIR_USB_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000020  </td><td class="markdownTableBodyCenter">虚拟USB设备   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gafed4476711d7e9585a4e60479913a47d">MV_GENTL_GIGE_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000040  </td><td class="markdownTableBodyCenter">自研网卡下GigE设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gab1b6a64caf6a090fb9aebc4e23cee483">MV_GENTL_CAMERALINK_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000080  </td><td class="markdownTableBodyCenter">CameraLink设备   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gac01ec5ca7b90546ab9f063277f7c164f">MV_GENTL_CXP_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000100  </td><td class="markdownTableBodyCenter">CoaXPress设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gab2085eadb981f0ef72459e865dc43bab">MV_GENTL_XOF_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000200  </td><td class="markdownTableBodyCenter">XoF设备   </td></tr>
</table>
</td></tr>
    <tr><td class="paramname">pstDevList</td><td>[IN][OUT] 设备列表 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd><b>&#160;&bull;&#160;</b>设备列表的内存是在SDK内部分配的，多线程调用该接口时会进行设备列表内存的释放和申请，建议尽量避免多线程枚举操作。<br />
 <b>&#160;&bull;&#160;</b>参数枚举传输层，适配传入MV_GIGE_DEVICE、MV_1394_DEVICE、MV_USB_DEVICE、MV_CAMERALINK_DEVICE；MV_GIGE_DEVICE该参数传出所有GiGE相关的设备信息（包含虚拟GiGE和GenTL下的GiGE设备），MV_USB_DEVICE该参数传出所有USB设备，包含虚拟USB设备。<br />
 <b>&#160;&bull;&#160;</b>MV_GENTL_GIGE_DEVICE、MV_GENTL_CAMERALINK_DEVICE、MV_GENTL_CXP_DEVICE、MV_GENTL_XOF_DEVICE传输层可以返回对采集卡下的相机信息。 </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_chunk_data_8cpp-example.html#a30">ChunkData.cpp</a>, <a class="el" href="_display_8cpp-example.html#a31">Display.cpp</a>, <a class="el" href="_events_8cpp-example.html#a21">Events.cpp</a>, <a class="el" href="_force_i_p_8cpp-example.html#a14">ForceIP.cpp</a>, <a class="el" href="_force_i_p_ex_8cpp-example.html#a14">ForceIPEx.cpp</a>, <a class="el" href="_grab__asynchronous_8cpp-example.html#a19">Grab_Asynchronous.cpp</a>, <a class="el" href="_grab__image_callback_8cpp-example.html#a18">Grab_ImageCallback.cpp</a>, <a class="el" href="_grab_image_8cpp-example.html#a22">GrabImage.cpp</a>, <a class="el" href="_grab_image__high_performance_8cpp-example.html#a22">GrabImage_HighPerformance.cpp</a>, <a class="el" href="_grab_multiple_camera_8cpp-example.html#a25">GrabMultipleCamera.cpp</a>, <a class="el" href="_high_bandwith_decode_8cpp-example.html#a51">HighBandwithDecode.cpp</a>, <a class="el" href="_image_process_8cpp-example.html#a14">ImageProcess.cpp</a>, <a class="el" href="_interface_and_device_demo_8cpp-example.html#a38">InterfaceAndDeviceDemo.cpp</a>, <a class="el" href="_multi_cast_8cpp-example.html#a19">MultiCast.cpp</a>, <a class="el" href="_parametrize_camera__file_access_8cpp-example.html#a23">ParametrizeCamera_FileAccess.cpp</a>, <a class="el" href="_parametrize_camera__load_and_save_8cpp-example.html#a14">ParametrizeCamera_LoadAndSave.cpp</a>, <a class="el" href="_reconnect_demo_8cpp-example.html#a24">ReconnectDemo.cpp</a>, <a class="el" href="_set_i_o_8cpp-example.html#a14">SetIO.cpp</a>, <a class="el" href="_set_param_8cpp-example.html#a14">SetParam.cpp</a>, <a class="el" href="_trigger__image_8cpp-example.html#a23">Trigger_Image.cpp</a> , 以及 <a class="el" href="_trigger__image_callback_8cpp-example.html#a19">Trigger_ImageCallback.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="ga823b2ea8cf02a20ea37ade76f5aadc44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga823b2ea8cf02a20ea37ade76f5aadc44">&#9670;&nbsp;</a></span>MV_CC_EnumDevicesEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_EnumDevicesEx </td>
          <td>(</td>
          <td class="paramtype">IN unsigned int&#160;</td>
          <td class="paramname"><em>nTLayerType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN OUT <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o___l_i_s_t.html">MV_CC_DEVICE_INFO_LIST</a> *&#160;</td>
          <td class="paramname"><em>pstDevList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN const char *&#160;</td>
          <td class="paramname"><em>strManufacturerName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据厂商名字枚举设备，支持枚举对应采集卡上的相机 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nTLayerType</td><td>[IN] 枚举传输层，参数定义参见CameraParams.h <table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">传输层协议类型定义  </th><th class="markdownTableHeadCenter">值  </th><th class="markdownTableHeadCenter">说明   </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gae1780ad0d41bcd2e835ab81155b398e6">MV_GIGE_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000001  </td><td class="markdownTableBodyCenter">GigE设备   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga356c3a2b4efad3bea955ecb54e1632fe">MV_USB_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000004  </td><td class="markdownTableBodyCenter">USB设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga45ee1f85623d2a6d3473f62f5cf90a77">MV_CAMERALINK_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000008  </td><td class="markdownTableBodyCenter">CameraLink设备（串口）   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga2eb6e8f764d2a5196c5cbfb002c3cf50">MV_VIR_GIGE_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000010  </td><td class="markdownTableBodyCenter">虚拟GigE设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gae28c7fd764b08214f45c7717920844b6">MV_VIR_USB_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000020  </td><td class="markdownTableBodyCenter">虚拟USB设备   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gafed4476711d7e9585a4e60479913a47d">MV_GENTL_GIGE_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000040  </td><td class="markdownTableBodyCenter">自研网卡下GigE设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gab1b6a64caf6a090fb9aebc4e23cee483">MV_GENTL_CAMERALINK_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000080  </td><td class="markdownTableBodyCenter">CameraLink设备   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gac01ec5ca7b90546ab9f063277f7c164f">MV_GENTL_CXP_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000100  </td><td class="markdownTableBodyCenter">CoaXPress设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gab2085eadb981f0ef72459e865dc43bab">MV_GENTL_XOF_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000200  </td><td class="markdownTableBodyCenter">XoF设备   </td></tr>
</table>
</td></tr>
    <tr><td class="paramname">pstDevList</td><td>[IN][OUT] 设备列表 </td></tr>
    <tr><td class="paramname">strManufacturerName</td><td>[IN] 厂商名字 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd><b>&#160;&bull;&#160;</b>参数枚举传输层，适配传入MV_GIGE_DEVICE、MV_1394_DEVICE、MV_USB_DEVICE、MV_CAMERALINK_DEVICE；MV_GIGE_DEVICE该参数传出所有GiGE相关的设备信息（包含虚拟GiGE和GenTL下的GiGE设备），MV_USB_DEVICE该参数传出所有USB设备，包含虚拟USB设备。<br />
 <b>&#160;&bull;&#160;</b>设备列表的内存是在SDK内部分配的，多线程调用该接口时会进行设备列表内存的释放和申请，建议尽量避免多线程枚举操作。<br />
 <b>&#160;&bull;&#160;</b>MV_GENTL_GIGE_DEVICE、MV_GENTL_CAMERALINK_DEVICE、MV_GENTL_CXP_DEVICE、MV_GENTL_XOF_DEVICE传输层可以返回对采集卡下的相机信息。 </dd></dl>

</div>
</div>
<a id="gab5283e7d0f38e747e86e7bfa8b6411b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab5283e7d0f38e747e86e7bfa8b6411b9">&#9670;&nbsp;</a></span>MV_CC_EnumDevicesEx2()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_EnumDevicesEx2 </td>
          <td>(</td>
          <td class="paramtype">IN unsigned int&#160;</td>
          <td class="paramname"><em>nTLayerType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN OUT <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o___l_i_s_t.html">MV_CC_DEVICE_INFO_LIST</a> *&#160;</td>
          <td class="paramname"><em>pstDevList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN const char *&#160;</td>
          <td class="paramname"><em>strManufacturerName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN <a class="el" href="group___xE7_xB1_xBB_xE5_x9E_x8B_xE5_xAE_x9A_xE4_xB9_x89.html#ga0c3433390e7c75fccb1605f3cf010ff1">MV_SORT_METHOD</a>&#160;</td>
          <td class="paramname"><em>enSortMethod</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>枚举设备扩展（可指定排序方式枚举、根据厂商名字过滤），支持枚举对应采集卡上的相机 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nTLayerType</td><td>[IN] 枚举传输层（区分每一种传输层类型，不耦合），参数定义参见CameraParams.h <table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">传输层协议类型定义  </th><th class="markdownTableHeadCenter">值  </th><th class="markdownTableHeadCenter">说明   </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gae1780ad0d41bcd2e835ab81155b398e6">MV_GIGE_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000001  </td><td class="markdownTableBodyCenter">GigE设备   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga356c3a2b4efad3bea955ecb54e1632fe">MV_USB_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000004  </td><td class="markdownTableBodyCenter">USB设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga45ee1f85623d2a6d3473f62f5cf90a77">MV_CAMERALINK_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000008  </td><td class="markdownTableBodyCenter">CameraLink设备（串口）   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga2eb6e8f764d2a5196c5cbfb002c3cf50">MV_VIR_GIGE_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000010  </td><td class="markdownTableBodyCenter">虚拟GigE设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gae28c7fd764b08214f45c7717920844b6">MV_VIR_USB_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000020  </td><td class="markdownTableBodyCenter">虚拟USB设备   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gafed4476711d7e9585a4e60479913a47d">MV_GENTL_GIGE_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000040  </td><td class="markdownTableBodyCenter">自研网卡下GigE设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gab1b6a64caf6a090fb9aebc4e23cee483">MV_GENTL_CAMERALINK_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000080  </td><td class="markdownTableBodyCenter">CameraLink设备   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gac01ec5ca7b90546ab9f063277f7c164f">MV_GENTL_CXP_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000100  </td><td class="markdownTableBodyCenter">CoaXPress设备   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gab2085eadb981f0ef72459e865dc43bab">MV_GENTL_XOF_DEVICE</a>  </td><td class="markdownTableBodyCenter">0x00000200  </td><td class="markdownTableBodyCenter">XoF设备   </td></tr>
</table>
</td></tr>
    <tr><td class="paramname">pstDevList</td><td>[IN][OUT] 设备列表 </td></tr>
    <tr><td class="paramname">strManufacturerName</td><td>[IN] 厂商名字（可传NULL，即不过滤） </td></tr>
    <tr><td class="paramname">enSortMethod</td><td>[IN] 排序方式 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd><b>&#160;&bull;&#160;</b>设备列表的内存是在SDK内部分配的，多线程调用该接口时会进行设备列表内存的释放和申请，建议尽量避免多线程枚举操作。<br />
 <b>&#160;&bull;&#160;</b>strManufacturerName可传入NULL，若传入NULL则返回排好序的所有设备列表，若不为NULL则只返回排好序的指定厂商设备列表。<br />
 <b>&#160;&bull;&#160;</b>MV_GENTL_GIGE_DEVICE、MV_GENTL_CAMERALINK_DEVICE、MV_GENTL_CXP_DEVICE、MV_GENTL_XOF_DEVICE传输层可以返回对采集卡下的相机信息。<br />
 <b>&#160;&bull;&#160;</b> <a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#gab5283e7d0f38e747e86e7bfa8b6411b9" title="枚举设备扩展（可指定排序方式枚举、根据厂商名字过滤），支持枚举对应采集卡上的相机">MV_CC_EnumDevicesEx2()</a> 与 <a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga823b2ea8cf02a20ea37ade76f5aadc44" title="根据厂商名字枚举设备，支持枚举对应采集卡上的相机">MV_CC_EnumDevicesEx()</a> 接口的差异如下： <ul>
<li>
<a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga823b2ea8cf02a20ea37ade76f5aadc44" title="根据厂商名字枚举设备，支持枚举对应采集卡上的相机">MV_CC_EnumDevicesEx()</a> 传入MV_GIGE_DEVICE，除了枚举网段内的网口相机以外，还会枚举虚拟网口相机和自研采集卡下的网口相机；若传入MV_USB_DEVICE，则会枚举USB口相机和虚拟USB口相机。 </li>
<li>
<a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#gab5283e7d0f38e747e86e7bfa8b6411b9" title="枚举设备扩展（可指定排序方式枚举、根据厂商名字过滤），支持枚举对应采集卡上的相机">MV_CC_EnumDevicesEx2()</a> 传入MV_GIGE_DEVICE，仅枚举网段内的网口相机；若传入MV_USB_DEVICE，则仅枚举USB口相机。 </li>
<li>
<a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#gab5283e7d0f38e747e86e7bfa8b6411b9" title="枚举设备扩展（可指定排序方式枚举、根据厂商名字过滤），支持枚举对应采集卡上的相机">MV_CC_EnumDevicesEx2()</a> 多出排序的功能，由参数MV_SORT_METHOD enSortMethod决定排序方式。 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ga3c3ffcbd330529ee076433ef36d226f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3c3ffcbd330529ee076433ef36d226f5">&#9670;&nbsp;</a></span>MV_CC_IsDeviceAccessible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API bool __stdcall MV_CC_IsDeviceAccessible </td>
          <td>(</td>
          <td class="paramtype">IN <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o.html">MV_CC_DEVICE_INFO</a> *&#160;</td>
          <td class="paramname"><em>pstDevInfo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN unsigned int&#160;</td>
          <td class="paramname"><em>nAccessMode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设备是否可达 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">pstDevInfo</td><td>[IN] 设备信息结构体 </td></tr>
    <tr><td class="paramname">nAccessMode</td><td>[IN] 访问权限 <table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">宏定义  </th><th class="markdownTableHeadCenter">宏定义值  </th><th class="markdownTableHeadCenter">含义   </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga37a90411f6aa059bfb76d3ac0aad3602">MV_ACCESS_Exclusive</a>  </td><td class="markdownTableBodyCenter">1  </td><td class="markdownTableBodyCenter">独占权限，其他APP只允许读CCP寄存器   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga7d4002d7c8e9ec3299575f760e13738b">MV_ACCESS_ExclusiveWithSwitch</a>  </td><td class="markdownTableBodyCenter">2  </td><td class="markdownTableBodyCenter">可以从5模式下抢占权限，然后以独占权限打开   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gab921ca384c6c34b6f6fcac78182de8b1">MV_ACCESS_Control</a>  </td><td class="markdownTableBodyCenter">3  </td><td class="markdownTableBodyCenter">控制权限，其他APP允许读所有寄存器   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gaced63ab961dc7de90b81757f219ba932">MV_ACCESS_ControlWithSwitch</a>  </td><td class="markdownTableBodyCenter">4  </td><td class="markdownTableBodyCenter">可以从5模式下抢占权限，然后以控制权限打开   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga744a93b567a354373193169aa030b2b2">MV_ACCESS_ControlSwitchEnable</a>  </td><td class="markdownTableBodyCenter">5  </td><td class="markdownTableBodyCenter">以可被抢占的控制权限打开   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga403ccb58a5e570026e8d45debd25f253">MV_ACCESS_ControlSwitchEnableWithKey</a>  </td><td class="markdownTableBodyCenter">6  </td><td class="markdownTableBodyCenter">可以从5模式下抢占权限，然后以可被抢占的控制权限打开   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga5ea932e8a35a9bb36f3243ccc86488ee">MV_ACCESS_Monitor</a>  </td><td class="markdownTableBodyCenter">7  </td><td class="markdownTableBodyCenter">读模式打开设备，适用于控制权限下   </td></tr>
</table>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>可达，返回true；不可达，返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd><b>&#160;&bull;&#160;</b>读取设备CCP寄存器的值，判断当前状态是否具有某种访问权限。 <br />
 <b>&#160;&bull;&#160;</b>如果设备不支持MV_ACCESS_ExclusiveWithSwitch、MV_ACCESS_ControlWithSwitch、MV_ACCESS_ControlSwitchEnableWithKey这三种模式，接口返回false。目前设备不支持这3种抢占模式，国际上主流的厂商的设备也都暂不支持这3种模式。 <br />
</dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_force_i_p_8cpp-example.html#a18">ForceIP.cpp</a> , 以及 <a class="el" href="_force_i_p_ex_8cpp-example.html#a19">ForceIPEx.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="gaf10f0644caa6d4dd39fd8c14f8736153"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf10f0644caa6d4dd39fd8c14f8736153">&#9670;&nbsp;</a></span>MV_CC_CreateHandle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_CreateHandle </td>
          <td>(</td>
          <td class="paramtype">IN OUT void **&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN const <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o.html">MV_CC_DEVICE_INFO</a> *&#160;</td>
          <td class="paramname"><em>pstDevInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>创建设备句柄 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN][OUT] 设备句柄 </td></tr>
    <tr><td class="paramname">pstDevInfo</td><td>[IN] 设备信息结构体 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd><b>&#160;&bull;&#160;</b>根据输入的设备信息，创建库内部必须的资源和初始化内部模块。<br />
 <b>&#160;&bull;&#160;</b>通过该接口创建句柄，调用SDK接口，会默认生成SDK日志文件，如果不需要生成日志文件，可以通过 <a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga09fd2a7fa7b1bbeec829eca959061169" title="创建设备句柄，不生成日志">MV_CC_CreateHandleWithoutLog()</a> 创建句柄 </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_chunk_data_8cpp-example.html#a33">ChunkData.cpp</a>, <a class="el" href="_connect_spec_camera_8cpp-example.html#a14">ConnectSpecCamera.cpp</a>, <a class="el" href="_display_8cpp-example.html#a34">Display.cpp</a>, <a class="el" href="_events_8cpp-example.html#a24">Events.cpp</a>, <a class="el" href="_force_i_p_8cpp-example.html#a17">ForceIP.cpp</a>, <a class="el" href="_force_i_p_ex_8cpp-example.html#a17">ForceIPEx.cpp</a>, <a class="el" href="_grab__asynchronous_8cpp-example.html#a22">Grab_Asynchronous.cpp</a>, <a class="el" href="_grab__image_callback_8cpp-example.html#a21">Grab_ImageCallback.cpp</a>, <a class="el" href="_grab_image_8cpp-example.html#a25">GrabImage.cpp</a>, <a class="el" href="_grab_image__high_performance_8cpp-example.html#a25">GrabImage_HighPerformance.cpp</a>, <a class="el" href="_grab_multiple_camera_8cpp-example.html#a28">GrabMultipleCamera.cpp</a>, <a class="el" href="_high_bandwith_decode_8cpp-example.html#a54">HighBandwithDecode.cpp</a>, <a class="el" href="_image_process_8cpp-example.html#a17">ImageProcess.cpp</a>, <a class="el" href="_interface_and_device_demo_8cpp-example.html#a41">InterfaceAndDeviceDemo.cpp</a>, <a class="el" href="_multi_cast_8cpp-example.html#a22">MultiCast.cpp</a>, <a class="el" href="_parametrize_camera__file_access_8cpp-example.html#a26">ParametrizeCamera_FileAccess.cpp</a>, <a class="el" href="_parametrize_camera__load_and_save_8cpp-example.html#a17">ParametrizeCamera_LoadAndSave.cpp</a>, <a class="el" href="_reconnect_demo_8cpp-example.html#a29">ReconnectDemo.cpp</a>, <a class="el" href="_set_i_o_8cpp-example.html#a17">SetIO.cpp</a>, <a class="el" href="_set_param_8cpp-example.html#a17">SetParam.cpp</a>, <a class="el" href="_trigger__image_8cpp-example.html#a26">Trigger_Image.cpp</a> , 以及 <a class="el" href="_trigger__image_callback_8cpp-example.html#a22">Trigger_ImageCallback.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="ga09fd2a7fa7b1bbeec829eca959061169"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga09fd2a7fa7b1bbeec829eca959061169">&#9670;&nbsp;</a></span>MV_CC_CreateHandleWithoutLog()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_CreateHandleWithoutLog </td>
          <td>(</td>
          <td class="paramtype">IN OUT void **&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN const <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o.html">MV_CC_DEVICE_INFO</a> *&#160;</td>
          <td class="paramname"><em>pstDevInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>创建设备句柄，不生成日志 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN][OUT] 设备句柄 </td></tr>
    <tr><td class="paramname">pstDevInfo</td><td>[IN] 设备信息结构体 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd><b>&#160;&bull;&#160;</b>根据输入的设备信息，创建库内部必须的资源和初始化内部模块。<br />
 <b>&#160;&bull;&#160;</b>通过该接口创建句柄，调用SDK接口，不会默认生成SDK日志文件，如果需要生成日志文件可以通过 <a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#gaf10f0644caa6d4dd39fd8c14f8736153" title="创建设备句柄">MV_CC_CreateHandle()</a> 创建句柄，日志文件自动生成。 </dd></dl>

</div>
</div>
<a id="ga25ec535d08180f1c987c20c75b2224a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga25ec535d08180f1c987c20c75b2224a2">&#9670;&nbsp;</a></span>MV_CC_IsDeviceConnected()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API bool __stdcall MV_CC_IsDeviceConnected </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断设备是否处于连接状态 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>设备处于连接状态，返回true；没连接或失去连接，返回false。 </dd></dl>

</div>
</div>
<a id="ga308c9a9869be7a457d27aadd94ce57dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga308c9a9869be7a457d27aadd94ce57dd">&#9670;&nbsp;</a></span>MV_CC_OpenDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_OpenDevice </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN unsigned int&#160;</td>
          <td class="paramname"><em>nAccessMode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN unsigned short&#160;</td>
          <td class="paramname"><em>nSwitchoverKey</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>打开设备 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
    <tr><td class="paramname">nAccessMode</td><td>[IN] 访问权限 <table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">宏定义  </th><th class="markdownTableHeadCenter">宏定义值  </th><th class="markdownTableHeadCenter">含义   </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga37a90411f6aa059bfb76d3ac0aad3602">MV_ACCESS_Exclusive</a>  </td><td class="markdownTableBodyCenter">1  </td><td class="markdownTableBodyCenter">独占权限，其他APP只允许读CCP寄存器   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga7d4002d7c8e9ec3299575f760e13738b">MV_ACCESS_ExclusiveWithSwitch</a>  </td><td class="markdownTableBodyCenter">2  </td><td class="markdownTableBodyCenter">可以从5模式下抢占权限，然后以独占权限打开   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gab921ca384c6c34b6f6fcac78182de8b1">MV_ACCESS_Control</a>  </td><td class="markdownTableBodyCenter">3  </td><td class="markdownTableBodyCenter">控制权限，其他APP允许读所有寄存器   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#gaced63ab961dc7de90b81757f219ba932">MV_ACCESS_ControlWithSwitch</a>  </td><td class="markdownTableBodyCenter">4  </td><td class="markdownTableBodyCenter">可以从5模式下抢占权限，然后以控制权限打开   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga744a93b567a354373193169aa030b2b2">MV_ACCESS_ControlSwitchEnable</a>  </td><td class="markdownTableBodyCenter">5  </td><td class="markdownTableBodyCenter">以可被抢占的控制权限打开   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga403ccb58a5e570026e8d45debd25f253">MV_ACCESS_ControlSwitchEnableWithKey</a>  </td><td class="markdownTableBodyCenter">6  </td><td class="markdownTableBodyCenter">可以从5模式下抢占权限，然后以可被抢占的控制权限打开   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga5ea932e8a35a9bb36f3243ccc86488ee">MV_ACCESS_Monitor</a>  </td><td class="markdownTableBodyCenter">7  </td><td class="markdownTableBodyCenter">读模式打开设备，适用于控制权限下   </td></tr>
</table>
</td></tr>
    <tr><td class="paramname">nSwitchoverKey</td><td>[IN] 切换访问权限时的密钥 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd><b>&#160;&bull;&#160;</b>根据设置的设备参数，找到对应的设备，连接设备。<br />
 <b>&#160;&bull;&#160;</b>调用接口时可不传入nAccessMode和nSwitchoverKey，此时默认设备访问模式为独占权限。目前设备暂不支持MV_ACCESS_ExclusiveWithSwitch、MV_ACCESS_ControlWithSwitch、MV_ACCESS_ControlSwitchEnable、MV_ACCESS_ControlSwitchEnableWithKey这四种抢占模式。<br />
 <b>&#160;&bull;&#160;</b>对于U3V设备，nAccessMode、nSwitchoverKey这两个参数无效。 </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_chunk_data_8cpp-example.html#a34">ChunkData.cpp</a>, <a class="el" href="_connect_spec_camera_8cpp-example.html#a15">ConnectSpecCamera.cpp</a>, <a class="el" href="_display_8cpp-example.html#a35">Display.cpp</a>, <a class="el" href="_events_8cpp-example.html#a25">Events.cpp</a>, <a class="el" href="_force_i_p_ex_8cpp-example.html#a27">ForceIPEx.cpp</a>, <a class="el" href="_grab__asynchronous_8cpp-example.html#a23">Grab_Asynchronous.cpp</a>, <a class="el" href="_grab__image_callback_8cpp-example.html#a22">Grab_ImageCallback.cpp</a>, <a class="el" href="_grab_image_8cpp-example.html#a26">GrabImage.cpp</a>, <a class="el" href="_grab_image__high_performance_8cpp-example.html#a26">GrabImage_HighPerformance.cpp</a>, <a class="el" href="_grab_multiple_camera_8cpp-example.html#a29">GrabMultipleCamera.cpp</a>, <a class="el" href="_high_bandwith_decode_8cpp-example.html#a55">HighBandwithDecode.cpp</a>, <a class="el" href="_image_process_8cpp-example.html#a18">ImageProcess.cpp</a>, <a class="el" href="_interface_and_device_demo_8cpp-example.html#a42">InterfaceAndDeviceDemo.cpp</a>, <a class="el" href="_multi_cast_8cpp-example.html#a23">MultiCast.cpp</a>, <a class="el" href="_parametrize_camera__file_access_8cpp-example.html#a27">ParametrizeCamera_FileAccess.cpp</a>, <a class="el" href="_parametrize_camera__load_and_save_8cpp-example.html#a18">ParametrizeCamera_LoadAndSave.cpp</a>, <a class="el" href="_reconnect_demo_8cpp-example.html#a30">ReconnectDemo.cpp</a>, <a class="el" href="_set_i_o_8cpp-example.html#a18">SetIO.cpp</a>, <a class="el" href="_set_param_8cpp-example.html#a18">SetParam.cpp</a>, <a class="el" href="_trigger__image_8cpp-example.html#a27">Trigger_Image.cpp</a> , 以及 <a class="el" href="_trigger__image_callback_8cpp-example.html#a23">Trigger_ImageCallback.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="gaa0b5fc03d13b3d0dc37d06a6e96ed646"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa0b5fc03d13b3d0dc37d06a6e96ed646">&#9670;&nbsp;</a></span>MV_CC_GetAllMatchInfo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_GetAllMatchInfo </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN OUT <a class="el" href="struct_m_v___a_l_l___m_a_t_c_h___i_n_f_o.html">MV_ALL_MATCH_INFO</a> *&#160;</td>
          <td class="paramname"><em>pstInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取各种类型的信息 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
    <tr><td class="paramname">pstInfo</td><td>[IN][OUT] 返回给调用者有关设备各种类型的信息结构体指针 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd><b>&#160;&bull;&#160;</b>接口里面输入需要获取的信息类型（指定 <a class="el" href="struct_m_v___a_l_l___m_a_t_c_h___i_n_f_o.html" title="全匹配的一种信息结构体">MV_ALL_MATCH_INFO</a> 结构体中的nType类型），获取对应的信息（在 <a class="el" href="struct_m_v___a_l_l___m_a_t_c_h___i_n_f_o.html" title="全匹配的一种信息结构体">MV_ALL_MATCH_INFO</a> 结构体中pInfo里返回）。<br />
 <b>&#160;&bull;&#160;</b>该接口的调用前置条件取决于所获取的信息类型，获取GigE设备的<a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga930f2ef3e4860a47f083232ad9f78303">MV_MATCH_TYPE_NET_DETECT</a> 信息需在开启抓图之后调用，获取U3V设备的<a class="el" href="group___xE5_xAE_x8F_xE5_xAE_x9A_xE4_xB9_x89.html#ga02488e984f7e8d63c3d77766981c7a6f">MV_MATCH_TYPE_USB_DETECT</a> 信息需在打开设备之后调用。<br />
 <b>&#160;&bull;&#160;</b>该接口不支持Camera Link设备。 </dd></dl>

</div>
</div>
<a id="gaa20b5286abff02858bb4802f907c111d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa20b5286abff02858bb4802f907c111d">&#9670;&nbsp;</a></span>MV_CC_GetDeviceInfo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceInfo </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN OUT <a class="el" href="struct_m_v___c_c___d_e_v_i_c_e___i_n_f_o.html">MV_CC_DEVICE_INFO</a> *&#160;</td>
          <td class="paramname"><em>pstDevInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取设备信息，取流之前调用 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
    <tr><td class="paramname">pstDevInfo</td><td>[IN][OUT] 返回给调用者有关设备信息结构体指针 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd><b>&#160;&bull;&#160;</b>支持用户在打开设备后获取设备信息，不支持GenTL设备。<br />
 <b>&#160;&bull;&#160;</b>若该设备是GigE设备，则调用该接口存在阻塞风险，因此不建议在取流过程中调用该接口。 </dd></dl>

</div>
</div>
<a id="ga33853bd328f46492102246ca8b645d57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga33853bd328f46492102246ca8b645d57">&#9670;&nbsp;</a></span>MV_CC_CloseDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_CloseDevice </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>关闭设备 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd>通过 <a class="el" href="group___xE7_x9B_xB8_xE6_x9C_xBA_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga308c9a9869be7a457d27aadd94ce57dd" title="打开设备">MV_CC_OpenDevice()</a> 连接设备后，可以通过该接口断开设备连接，释放资源。 </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_chunk_data_8cpp-example.html#a42">ChunkData.cpp</a>, <a class="el" href="_connect_spec_camera_8cpp-example.html#a25">ConnectSpecCamera.cpp</a>, <a class="el" href="_display_8cpp-example.html#a40">Display.cpp</a>, <a class="el" href="_events_8cpp-example.html#a34">Events.cpp</a>, <a class="el" href="_force_i_p_ex_8cpp-example.html#a29">ForceIPEx.cpp</a>, <a class="el" href="_grab__asynchronous_8cpp-example.html#a35">Grab_Asynchronous.cpp</a>, <a class="el" href="_grab__image_callback_8cpp-example.html#a29">Grab_ImageCallback.cpp</a>, <a class="el" href="_grab_image_8cpp-example.html#a32">GrabImage.cpp</a>, <a class="el" href="_grab_image__high_performance_8cpp-example.html#a35">GrabImage_HighPerformance.cpp</a>, <a class="el" href="_grab_multiple_camera_8cpp-example.html#a36">GrabMultipleCamera.cpp</a>, <a class="el" href="_high_bandwith_decode_8cpp-example.html#a84">HighBandwithDecode.cpp</a>, <a class="el" href="_interface_and_device_demo_8cpp-example.html#a48">InterfaceAndDeviceDemo.cpp</a>, <a class="el" href="_multi_cast_8cpp-example.html#a39">MultiCast.cpp</a>, <a class="el" href="_parametrize_camera__file_access_8cpp-example.html#a28">ParametrizeCamera_FileAccess.cpp</a>, <a class="el" href="_parametrize_camera__load_and_save_8cpp-example.html#a21">ParametrizeCamera_LoadAndSave.cpp</a>, <a class="el" href="_reconnect_demo_8cpp-example.html#a22">ReconnectDemo.cpp</a>, <a class="el" href="_set_i_o_8cpp-example.html#a25">SetIO.cpp</a>, <a class="el" href="_set_param_8cpp-example.html#a44">SetParam.cpp</a>, <a class="el" href="_trigger__image_8cpp-example.html#a35">Trigger_Image.cpp</a> , 以及 <a class="el" href="_trigger__image_callback_8cpp-example.html#a32">Trigger_ImageCallback.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="ga0f74372a22e8a19fa7e21dad45070428"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0f74372a22e8a19fa7e21dad45070428">&#9670;&nbsp;</a></span>MV_CC_DestroyHandle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_DestroyHandle </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>销毁设备句柄 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_chunk_data_8cpp-example.html#a43">ChunkData.cpp</a>, <a class="el" href="_connect_spec_camera_8cpp-example.html#a26">ConnectSpecCamera.cpp</a>, <a class="el" href="_display_8cpp-example.html#a41">Display.cpp</a>, <a class="el" href="_events_8cpp-example.html#a35">Events.cpp</a>, <a class="el" href="_force_i_p_8cpp-example.html#a23">ForceIP.cpp</a>, <a class="el" href="_force_i_p_ex_8cpp-example.html#a24">ForceIPEx.cpp</a>, <a class="el" href="_grab__asynchronous_8cpp-example.html#a36">Grab_Asynchronous.cpp</a>, <a class="el" href="_grab__image_callback_8cpp-example.html#a30">Grab_ImageCallback.cpp</a>, <a class="el" href="_grab_image_8cpp-example.html#a33">GrabImage.cpp</a>, <a class="el" href="_grab_image__high_performance_8cpp-example.html#a36">GrabImage_HighPerformance.cpp</a>, <a class="el" href="_grab_multiple_camera_8cpp-example.html#a37">GrabMultipleCamera.cpp</a>, <a class="el" href="_high_bandwith_decode_8cpp-example.html#a85">HighBandwithDecode.cpp</a>, <a class="el" href="_image_process_8cpp-example.html#a38">ImageProcess.cpp</a>, <a class="el" href="_interface_and_device_demo_8cpp-example.html#a49">InterfaceAndDeviceDemo.cpp</a>, <a class="el" href="_multi_cast_8cpp-example.html#a40">MultiCast.cpp</a>, <a class="el" href="_parametrize_camera__file_access_8cpp-example.html#a29">ParametrizeCamera_FileAccess.cpp</a>, <a class="el" href="_parametrize_camera__load_and_save_8cpp-example.html#a22">ParametrizeCamera_LoadAndSave.cpp</a>, <a class="el" href="_reconnect_demo_8cpp-example.html#a23">ReconnectDemo.cpp</a>, <a class="el" href="_set_i_o_8cpp-example.html#a26">SetIO.cpp</a>, <a class="el" href="_set_param_8cpp-example.html#a45">SetParam.cpp</a>, <a class="el" href="_trigger__image_8cpp-example.html#a36">Trigger_Image.cpp</a> , 以及 <a class="el" href="_trigger__image_callback_8cpp-example.html#a33">Trigger_ImageCallback.cpp</a>.</dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<div class="footer" style="text-align: right;">
	<hr/>
	<small></small>
</div>
<script>
	// 当前选中的菜单
	var currentMenuItem = document.querySelector('.tablist > li.current > a')
	if (currentMenuItem) { // 子菜单情况
	  window.parent.postMessage({
		navHref: currentMenuItem.href
	  }, '*')
	} else {
	  window.parent.postMessage({
		url: window.location.href
	  }, '*')
	}
  </script>
</body>
</html>